package com.itheima.wms.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.itheima.wms.datasource.WmsMybatisPlusCache;
import com.itheima.wms.entity.StockEntity;
import com.itheima.wms.vo.StockDetailVO;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * Mapper 接口
 * 库存
 * </p>
 */
@Repository
@CacheNamespace(implementation = WmsMybatisPlusCache.class, eviction = WmsMybatisPlusCache.class)
public interface StockMapper extends BaseMapper<StockEntity> {

    IPage<StockDetailVO> selectStockDetail(IPage<StockDetailVO> page, @Param("params") Map params);

    List<StockDetailVO> selectStockDetail(@Param("params") Map params);
}
